let fs = require("fs");

let readStream = fs.createReadStream("a.txt");
let writeStream = fs.createWriteStream("out1.txt");

readStream.pipe(writeStream);

console.log("finished");